var app = getApp();

/**
 * 竞赛奖励明细
 */
function getMoneyDetail(startPage, success) {
  let param = new Object();
  param['page'] = startPage;
  app.func.Get(false, app.api.competition_balance_list, param, function(res) {
    typeof success == 'function' && success(res);
  });
}

/**
 * 零钱明细
 */
function getUserAmountDetail(startPage, success) {
  let param = new Object();
  param['startPage'] = startPage;
  app.func.Get(false, app.api.get_user_amount_detail, param, function (res) {
    typeof success == 'function' && success(res);
  });
}

module.exports = {
  getMoneyDetail: getMoneyDetail,
  getUserAmountDetail: getUserAmountDetail
}